<?php
Class UserSession{
	static $session_name='AJHSHHDSAHFIOE';

	public function __construct()
	{
		if(!isset($_SESSION)){
		    session_start();
		} 
	}

	public function set($value)
	{
		$_SESSION[UserSession::$session_name]=$value;
	}

	public function get()
	{
		if(isset($_SESSION[UserSession::$session_name])){
    	    return $_SESSION[UserSession::$session_name];
		}		
	}

	public function destroy()
	{
		session_unset();
		session_destroy();
	}
}